home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / mxcode / gsrc211 / dump.asm < prev    next >
Assembly Source File  |  1994-03-04  |  571b  |  47 lines

  1. ideal
  2. P286
  3. model    Huge
  4. jumps
  5.  
  6. stack    1024
  7.  
  8. include     "gusmod.inc"
  9. include     "musgus.asm"
  10.  
  11. segment         MyCode
  12.         assume    cs:MyCode,ds:MyCode
  13.  
  14. MyFile        db    'M.INF',0
  15. proc        DumpSoundSeg
  16.         push    ds
  17.         mov    ax,cs
  18.         mov    ds,ax
  19.         mov    dx,offset MyFile
  20.         mov    cx,0
  21.         mov    ah,3Ch
  22.         int    21h
  23.         mov    bx,ax
  24.         mov    cx,SizeSoundSeg
  25.         mov    dx,0
  26.         push    ds
  27.         mov    ax,GUSSound
  28.         mov    ds,ax
  29.         mov    ah,40h
  30.         int    21h
  31.         pop    ds
  32.         mov    ah,3Eh
  33.         int    21h
  34.         pop    ds
  35.         ret
  36. endp        DumpSoundSeg
  37.  
  38. Start:
  39.         call    DumpSoundSeg
  40.         mov    ax,4C00h
  41.         int    21h
  42.  
  43. ends        MyCode
  44.         end    Start
  45.  
  46.  
  47.